package com.woniuxy.book.service;

import com.woniuxy.book.entity.PageInfo;
import com.woniuxy.book.param.LoginParam;
import com.woniuxy.book.param.account.UpdateAdminParam;
import com.woniuxy.book.param.account.AddAccountParam;
import com.woniuxy.book.param.account.SelectAdminParam;
import com.woniuxy.book.service.dto.AccountDTO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author li
 * @since 2024年2月09日
 */
public interface AccountService{

    AccountDTO login(LoginParam param);

    void addAccount(AddAccountParam param);

    List<AccountDTO> selectAdmin(SelectAdminParam param);

    PageInfo searchAdmin(Integer pageNum, Integer pageSize, String condition);

    void updateAdmin(UpdateAdminParam param);

    void enableAccount(Integer accountId);

    void disableAccount(Integer accountId);

    void deleteAccount(Integer accountId);

    void undeleteAccount(Integer accountId);
}
